package com.firstweb.test;

import java.util.HashMap;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.firstweb.test.mapper.TestMapper;

@Controller
public class FirstController {
	
	@Resource(name="testMapper")
	protected TestMapper dao;
	
	@RequestMapping(value = "/firstTest", produces = "application/json")
	@ResponseBody 
	public Map<String, Object> firstTest() {
		Map<String, Object> map = new HashMap<>();
		
		
		
		
		System.out.println(dao.getAllOrder());
	     return map;
	}

}
